package com.shopmall.order.mapper;

import com.shopmall.model.entity.order.OrderInfo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface OrderInfoMapper {
    void save(OrderInfo orderInfo);

    // 获取订单信息
    OrderInfo getById(Long orderId);

    // 查询订单信息
    List<OrderInfo> findUserPage(Long userId, Integer orderStatus);

    // 远程调用：根据订单编号获取订单信息
    OrderInfo getOrderInfoByOrderNo(String orderNo);

    void updateById(OrderInfo orderInfo);
}
